/**
 * 团本应聘和招募
 */
const mongoose = require('mongoose');
const config = require('../config');

const ObjectSchema = new mongoose.Schema(
  {
    openid: {
      type: String,
      index: true,
    },
    area: String, // 大区：一区、三区等
    realm: String, // 服务器
    title: String,
    player_character: [{ type: String }], // 二选一
    recruit_character: [{ type: String }], // 二选一
    game_images: [{ type: String }],
    activity_time: [{
      week: String,
      time: String
    }],
    progress: Number, // 团本进度
    wcl: String,
    content: String,
    enable: {
      type: Boolean,
      default: true,
    }
  },
  config,
);

exports.RaidRecruit = mongoose.model('Raid_Recruit', ObjectSchema, 'raid_recruit');
